package com.framework.loippi.service.impl;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.framework.loippi.dao.DoctorWorkDao;
import com.framework.loippi.entity.DoctorWork;
import com.framework.loippi.service.DoctorWorkService;

import java.util.Date;
import java.util.List;
/**
 * SERVICE - DoctorWork(医生坐班表)
 * 
 * @author wmj
 * @version 2.0
 */
@Service
public class DoctorWorkServiceImpl extends GenericServiceImpl<DoctorWork, Long> implements DoctorWorkService {
	
	@Autowired
	private DoctorWorkDao doctorWorkDao;
	
	
	@Autowired
	public void setGenericDao() {
		super.setGenericDao(doctorWorkDao);
	}

	public List<DoctorWork> findListByPage(Object parameter){
		return doctorWorkDao.findListByPage(parameter);
	}

	public Long deletes(Object parameter){
		return doctorWorkDao.deletes( parameter);
	}

	@Override
	public List<DoctorWork> findWorkByDoctorId(Integer departmentId) {
		return doctorWorkDao.findWorkByDoctorId(departmentId);
	}

	@Override
	public List<String> findSubscribeTime(@Param(value="workDate") Date workDate, @Param(value="doctorId")Integer doctorId) {
		return doctorWorkDao.findSubscribeTime(workDate, doctorId);
	}


}
